<?php

// ------------------------------------------------------------------------
// |@Author       : Jarmin <edshop@qq.com>
// |@----------------------------------------------------------------------
// |@Date         : 2023-06-24 15:40:35
// |@----------------------------------------------------------------------
// |@LastEditTime : 2025-04-29 08:08:43
// |@----------------------------------------------------------------------
// |@LastEditors  : Jarmin <jarmin@ladmin.cn>
// |@----------------------------------------------------------------------
// |@Description  : English language pack
// |@----------------------------------------------------------------------
// |@FilePath     : en-us.php
// |@----------------------------------------------------------------------
// |@Copyright (c) 2023 http://www.ladmin.cn   All rights reserved.
// ------------------------------------------------------------------------
return [
    // 1. System Core
    'system' => [
        'success_operation' => 'Operation successful',
        'success_created' => 'Created successfully',
        'success_updated' => 'Updated successfully',
        'success_deleted' => 'Deleted successfully',
        'success_saved' => 'Saved successfully',
        'error_operation' => 'Operation failed',
        'class_not_exists' => 'Validation class {:class} does not exist',
        'scene_not_exists' => 'Validation scene {:scene} does not exist',
        'field_required' => 'Field {:field} cannot be empty',
        'field_invalid' => 'Field {:field} format is invalid',
        'service_not_found' => 'Service class {:class} not found',
        'method_not_exists' => 'Method {:method} does not exist',
        'repository_not_found' => 'Repository class {:class} not found',
        'model_not_found' => 'Model {:model} does not exist',
        'error_config' => 'Configuration error',
    ],
    // 2. Request Processing
    'request' => [
        'api_not_found' => 'API not found',
        'api_version_required' => 'API version required',
        'api_version_invalid' => 'Invalid API version',
        'api_version_deprecated' => 'API version deprecated',
        'api_version_expired' => 'API version expired',
        'api_too_frequent' => 'Too many requests, please try again later',
        'auth_missing_sign_parameter' => 'Missing signature parameter',
        'auth_login_expired' => 'Login expired',
        'auth_invalid_parameter' => 'Invalid parameter',
        'jwt_missing_token' => 'Missing access token',
        'jwt_token_expired' => 'Login credential expired',
        'jwt_config_error' => 'System security configuration error',
        'jwt_unauthorized' => 'Unauthorized access request',
        'jwt_invalid_header' => 'Invalid authorization header format',
    ],
    // 3. Service Layer
    'service' => [
        'codeextend_invalid_min_length' => 'Random string length cannot be less than 4',
        'codeextend_invalid_char_type' => 'Invalid character type, allowed types: {:allowed_types}',
        'codeextend_aes256_key_required' => 'AES-256 encryption requires 32-byte key, current length: {:received_length}',
        'codeextend_encrypt_failed' => 'Data encryption failed: {:openssl_error}',
        'codeextend_invalid_encrypt_data' => 'Invalid encrypted data format: {:input_sample}',
        'codeextend_decrypt_failed' => 'Data decryption failed: {:openssl_error}',
        'codeextend_compress_failed' => 'Data compression failed, data type: {:data_type}',
        'codeextend_decompress_failed' => 'Data decompression failed, input length: {:input_length}',
        'captcha_type_invalid' => 'Invalid captcha type: {:type}',
        'captcha_type_not_supported' => 'Unsupported captcha type: {:type}',
        'captcha_data_format' => 'Captcha data format error',
        'captcha_data_missing' => 'Captcha data cannot be empty',
        'ip_unknown' => 'Unknown',
        'ip_unknown_location' => 'Unknown location',
        'ip_intranet' => 'Intranet',
        'ip_intranet_ip' => 'Intranet IP',
        'qrcode_generate_failed' => 'QR code generation failed',
        'qrcode_parse_failed' => 'QR code parsing failed',
    ],
    // 4. Model Layer
    'model' => [
        'token_type_access_text' => 'Access Token',
        'token_type_access_color' => 'primary',
        'token_type_refresh_text' => 'Refresh Token',
        'token_type_refresh_color' => 'success',
        'token_status_valid_text' => 'Valid',
        'token_status_valid_color' => 'success',
        'token_status_revoked_text' => 'Revoked',
        'token_status_revoked_color' => 'danger',
        'token_device_unknown_device' => 'Unknown Device',
        'token_device_unknown_browser' => 'Unknown Browser',
        'token_device_unknown_os' => 'Unknown OS',
        'token_device_type_desktop' => 'Desktop',
        'token_device_type_mobile' => 'Mobile',
        'token_device_browser_chrome' => 'Chrome',
        'token_device_browser_firefox' => 'Firefox',
        'token_device_browser_safari' => 'Safari',
        'token_device_browser_edge' => 'Edge',
        'token_device_os_windows' => 'Windows',
        'token_device_os_macos' => 'MacOS',
        'token_device_os_linux' => 'Linux',
        'token_device_os_android' => 'Android',
        'token_device_os_ios' => 'iOS',
        'operation_create_success' => 'Created successfully',
        'operation_create_failed' => 'Creation failed',
        'operation_update_success' => 'Updated successfully',
        'operation_update_failed' => 'Update failed',
        'operation_delete_success' => 'Deleted successfully',
        'operation_delete_failed' => 'Deletion failed',
        'operation_save_success' => 'Saved successfully',
        'operation_save_failed' => 'Save failed',
        'query_pagination_failed' => 'Pagination query failed',
        'query_not_found' => 'Record not found',
        'query_multiple_records' => 'Multiple records found',
        'query_invalid_condition' => 'Invalid query condition',
        'field_invalid_fields' => 'Invalid fields: {:fields}',
        'field_required_fields' => 'Required fields: {:fields}',
        'field_type_error' => 'Field type error: {:field}',
        'field_length_error' => 'Field length error: {:field}',
        'permission_no_permission' => 'No operation permission',
        'permission_data_not_owned' => 'No permission to operate others\' data',
        'permission_admin_required' => 'Administrator permission required',
        'timestamp_create_time' => 'Creation Time',
        'timestamp_update_time' => 'Update Time',
        'timestamp_delete_time' => 'Delete Time'
    ],
    // User related
    'user' => [
        'username_require' => 'Username cannot be empty',
        'username_max' => 'Username cannot exceed 25 characters',
        'username_unique' => 'Username already exists',
        'password_require' => 'Password cannot be empty',
        'password_min' => 'Password must be at least 5 characters',
        'password_max' => 'Password cannot exceed 20 characters',
        'expire_require' => 'Expiration time cannot be empty',
        'expire_integer' => 'Expiration time must be an integer',
        'nickname_require' => 'Nickname cannot be empty',
        'nickname_max' => 'Nickname cannot exceed 25 characters',
        'email_require' => 'Email cannot be empty',
        'email_email' => 'Invalid email format',
        'email_unique' => 'Email already exists',
        'mobile_require' => 'Mobile number cannot be empty',
        'mobile_mobile' => 'Invalid mobile number format',
        'mobile_unique' => 'Mobile number already exists',
        'password_error' => 'Password error',
    ],
];
